package LatentTicTacToe.Players;

import java.util.Scanner;

import LatentTicTacToe.Data.AbstractBoard;
import LatentTicTacToe.Data.Move;

/**
 * Class providing user controlled player
 * @author Jiri Cermak
 *
 */
public class HumanPlayer extends Player {

	public HumanPlayer(AbstractBoard initialBoard, byte sign) {
		super(sign, initialBoard);
	}

	@Override
	public Move getNextNode(AbstractBoard board, boolean validity) {

		Scanner sc = new Scanner(System.in);

		byte x;
		byte y;
		
		System.out.println("First coordinate:");
		x = sc.nextByte();
		System.out.println("Second coordinate:");
		y = sc.nextByte();

		return new Move(x, y);
	}
}
